package com.skytech.component.monitor.task;

import java.util.function.Consumer;

public class ThreadShell implements Runnable {



    private Consumer<String> consumer;
    private String threadIndex;
    public ThreadShell(Consumer<String> consumer,String threadIndex) {
        this.consumer = consumer;
        this.threadIndex = threadIndex;
    }

    @Override
    public void run() {
        consumer.accept(threadIndex);
    }
}
